themingengine: only round outline corners after shrinking
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 1 May 2014 23:39:35 +0000 (01:39 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 2 May 2014 18:42:54 +0000 (20:42 +0200)
Ensures the correctness of the applied radius.

gtk/gtkthemingengine.c

index 6e4fe46b906f4f7eebcb040060180cfb80e3d2d4..f780e179f1e7791a751570766361a1096a469306 100644 (file)
@@ -1895,12 +1895,12 @@ gtk_theming_engine_render_focus (GtkThemingEngine *engine,
       offset = _gtk_css_number_value_get (_gtk_theming_engine_peek_property (engine, GTK_CSS_PROPERTY_OUTLINE_OFFSET), 100);
 
       _gtk_rounded_box_init_rect (&border_box, x, y, width, height);
-      _gtk_rounded_box_apply_outline_radius_for_engine (&border_box, engine, GTK_JUNCTION_NONE);
       _gtk_rounded_box_shrink (&border_box,
                                - border_width[GTK_CSS_TOP] - offset,
                                - border_width[GTK_CSS_RIGHT] - offset,
                                - border_width[GTK_CSS_LEFT] - offset,
                                - border_width[GTK_CSS_BOTTOM] - offset);
+      _gtk_rounded_box_apply_outline_radius_for_engine (&border_box, engine, GTK_JUNCTION_NONE);
 
       render_border (cr, &border_box, border_width, 0, colors, border_style);
     }